import { createApp } from 'vue'
import App from './App.vue'
import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'
import './assets/main.scss'
import router from '@/router/index.js'
import { createPinia } from "pinia"
const pinia = createPinia()
import { createPersistedState } from 'pinia-persistedstate-plugin'
// 导入中文语言包
import locale from 'element-plus/dist/locale/zh-cn'

const persist = createPersistedState()
pinia.use(persist)

createApp(App)
    .use(pinia)
    .use(ElementPlus, { locale })
    .use(router)
    .mount('#app')
